package com.yps.io.aio.client;

import java.util.Scanner;

import com.yps.io.aio.server.Server;

public class Test {
	public static void main(String[] args) {
		try {
		//运行服务器
		Server.start();
		//避免客户端先与服务器执行
		Thread.sleep(1000);
		//运行客户端
		Client.start();
		System.out.println("请输入请求消息：");
		Scanner scanner = new Scanner(System.in);
		while(Client.sendMsg(scanner.nextLine()));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

